package com.yeswater.multithread.chapter2.test2_1.test6;

import org.junit.Test;

/**
 * author : yeswater
 * date : 2023/10/19
 */

public class RunTest {

    @Test
    public void test1() {
        PublicVar publicVarRef = new PublicVar();
        ThreadA thread = new ThreadA(publicVarRef);
        thread.start();

        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        publicVarRef.getValue();
    }

}
